package com.beamfield.dao.sys;

import com.beamfield.model.BeamField;
import com.beamfield.model.BeamFieldExample;
import com.beamfield.modelVo.BeamFieldVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface BeamFieldMapper {
    int deleteByPrimaryKey(Long beam_id);

    int insert(BeamField record);

    int insertSelective(BeamField record);

    List<BeamField> selectByExample(BeamFieldExample example);

    BeamField selectByPrimaryKey(Long beam_id);

    int updateByPrimaryKeySelective(BeamField record);

    int updateByPrimaryKey(BeamField record);

    List<BeamFieldVo> getAllBeamNameAndId();

    List<BeamFieldVo> getBeamFieldByBeamIdList(@Param("beamIdList") List<String> beamIdList);

    List<BeamField> selectPage(@Param("offset") String offset, @Param("limit") String limit, @Param("name") String name);

    long countPage(@Param("name") String name);

    void initDictionary(Long beamId);

    void initDictionaryData(Long beamId);

    long selectMaxBeamId();

    int deleteDictionary(Long beamId);

    int deleteDictionaryData(Long beamId);
}
